import requests

# GET 请求
res = requests.get('http://127.0.0.1:5000/request/?name=lisi&name=wangwu&age=33')
print(res)

# POST 请求
res = requests.post('http://127.0.0.1:5000/request/',
                    data={'name':'lucy','age':20},
                    cookies={'name':'nihao'})
print(res.text)
